package com.xnyzc.lhy.mis.mapper.approval;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.mis.entity.approval.OaApprovalList;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 审批列表
 * </p>
 *
 * @author zhuyubin
 * @since 2019-08-07
 */
public interface OaApprovalListMapper extends BaseMapper<OaApprovalList> {

    /**
     * 审批列表
     * @param iPage 分页实体
     * @param tag 用户来源
     * @param approvalUserId 申请人id
     * @param applyUserId 审批人id
     * @return
     */
    IPage<OaApprovalList> selectApprovalPage(
            IPage<OaApprovalList> iPage,
            @Param(value = "tag") String tag,
            @Param(value = "approvalUserId") Long approvalUserId,
            @Param(value = "applyUserId") Long applyUserId
    );
}
